.hidden {
    display: none;
}

.chat-head {
    height: 45px;
    background-color: cornflowerblue;
}

/* 图标按钮 */
.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    outline: none;
    font-size: 24px;
}

/* 聊天窗口 */
.chat-window {
    position: fixed;
    bottom: 0;
    right: 0;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.close-button {
    float: right;
    margin: 10px;
    padding: 5px 10px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.message-input-container {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#message-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
    word-wrap: break-word;
    resize: none;
}

.send-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.chat-content {
    height: calc(100% - 125px);
    overflow-y: auto;
    padding: 10px;

    overflow: overlay;

        /* 隐藏滚动条但保留滚动功能 */
        &::-webkit-scrollbar {
            width: 0px;
            /* 隐藏水平滚动条宽度 */
            height: 0px;
            /* 隐藏垂直滚动条高度 */
        }

        &::-webkit-scrollbar-thumb {
            background-color: transparent;
            /* 隐藏滚动条颜色 */
        }

        /* 对于非Webkit内核的浏览器 */
        & {
            -ms-overflow-style: none;
            /* IE 和 Edge */
            scrollbar-width: none;
            /* Firefox */
            overflow: -moz-scrollbars-none;
            /* Old Firefox */
        }
}

.message {
    display: flex;
    align-items: flex-start;
    word-wrap: break-word;
    word-break: break-all;
}

.message.user .message-text {
    background-color: #d1e7dd;
    color: #0f5132;
    border-radius: 10px;
    padding: 10px;
    max-width: 70%;
}

.message.system .message-text {
    background-color: #f8d7da;
    color: #842029;
    border-radius: 10px;
    padding: 10px;
    max-width: 70%;
}

.message.user {
    justify-content: flex-end;
}

.message.system {
    justify-content: flex-start;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 10px;
    padding-top: 15px;
}